package xml.handler;

import layoutitems.ImageElement;
import java.util.ArrayList;
import java.util.Iterator;

public class LayoutDataSet {

    private ArrayList<ImageElement> imageElements = new ArrayList<ImageElement>();
    private ImageElement currentImageElement;

    @Override
    public String toString() {
        String s = "";
        for (Iterator<ImageElement> iter = imageElements.iterator(); iter.hasNext();) {
            ImageElement ie = (ImageElement) iter.next();
            s += ie.getName() + "\n" + ie.getImagePath() + "\n\n";
        }
        return s;
    }

    public ArrayList<ImageElement> getImageElements() {
        return imageElements;
    }

    public void addCurrentImageElement() {
        imageElements.add(currentImageElement);
    }

    public void setImageElements(ArrayList<ImageElement> imageElements) {
        this.imageElements = imageElements;
    }

    public ImageElement getCurrentImageElement() {
        return currentImageElement;
    }

    public void setCurrentImageElement(ImageElement currentImageElement) {
        this.currentImageElement = currentImageElement;
    }
}
